home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Guided Tour of Multimedia (Second Edition)
/
The Guided Tour of Multimedia (Second Edition).iso
/
trials
/
qtw111
/
samples
/
libmain.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-11
|
1KB
|
51 lines
// ---------------------------------------------------------------------
//
// LIBMAIN.CPP - QuickTime for Windows Sample Decompressor
//
// Version 1.1
//
// (c) 1988-1993 Apple Computer, Inc. All Rights Reserved.
//
// ---------------------------------------------------------------------
// Windows header files
#include <windows.h>
#include <windowsx.h>
// Compiler header files
#include <string.h>
// Application header files
#include "prototyp.hp"
// Local data
static HINSTANCE hInstThisMod ;
/* function LibMain:
DLL Initialization
*/
int FAR PASCAL LibMain( HINSTANCE hInstance
, WORD wDataSeg
, WORD wHeapSize
, LPSTR lpszCmdLine
)
{
// perform common initialization
if ( wHeapSize > 0)
UnlockData( 0) ;
hInstThisMod = hInstance ; // save instance handle
// successful return
return 1 ;
} // LibMain
/* function GetInstOfThisMod:
Get the instance handle of this module
*/
HINSTANCE GetInstOfThisMod()
{
return hInstThisMod ;
} // GetInstOfThisMod